<?php
header("Content-type:text/html;charset=utf-8");
ini_set('display_errors','off');
	$host="127.0.0.1";
	$un="user";
	$pw="pass";
	$dbname="db";

	$conn=new MySQLi($host,$un,$pw,$dbname);

	if($conn->connect_error){
		die("数据库连接失败! 错误代码: ".$conn->connect_error);
	}
?>